package com.eurasia.assignment.infrastructure.client.hoj.auth;

import com.eurasia.assignment.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "login-service", url = "${target.service.base-url}", configuration = FeignConfig.class)
public interface HOJLoginFeignClient {
    @PostMapping("/api/login")
    ResponseEntity<String> login(
            @RequestBody LoginRequest request  // 请求体（可选）
    );
}
